package OOP;

import OOP.lesson18.Movable;

public abstract class TestOOP {

	public static void main(String[] args) 
	{
		//Animal cat = new Animal();
	
		Animal cat1 = new Cats();
		Animal cat2 = new PetCat();

		//Cats cat3 = (Cats) new Animal();
		Cats cat4 = new Cats();
		Cats cat5 = new PetCat();
		
		//PetCat cat6 = (PetCat) new Animal();
		//PetCat cat7 = (PetCat) new Cats();
		PetCat cat8 = new PetCat();
		
		//cat.makeNoise();
		cat4.makeNoise();
		cat5.makeNoise();
		cat8.makeNoise(); 
		
		cat4.play();
		cat5.play();
		cat8.play();
		//cat2.play();
		
		Animal dog = new Dog();
		Dog dog1 = new Dog();
		cat4.move("left");
		//System.out.println(myZoo.mammals[0] instanceof Movable);
		
		System.out.println(cat4 instanceof move);
	}

}
